const switchUrl = (url) => {
  if (typeof url !== 'string') {
    return url;
  }
  url = url.replace(/^(https?:)/, '');
  return url;
};

export default switchUrl;
